package com.hjf.examples;

public class findnum {
    // 找素数
    public static void main(String[] args) {
        int count = 0;

        OUT:
        for(int i = 101; i <= 200; i++) {

            for (int j = 2; j <= i / 2; j++) {
                if (i % j == 0) {
                    continue OUT;
                }
            }
            count++;
            System.out.println(i);
        }

        System.out.println("素数的个数是：" + count);
    }
}
